package com.eden.manage.dto.agent;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class AgentDto {


    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 平台id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long platId;

    /**
     * 代理名称
     */
    private String agentName;

    /**
     * 父级节点
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long parentId;

    /**
     * 层级，默认1
     */
    private Integer level;

    /**
     * 路径，存父节点以及本节点的id，竖线分隔，如123|456
     */
    private String routingPath;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime openTime;

    private Integer status;



    private String platName;

    private String remark;

    private String  parentName;
}
